package com.ultimatech.webapp.service;

import com.ultimatech.webapp.User;
import com.ultimatech.webapp.UserDelMsg;
import com.ultimatech.webapp.UserList;
import com.ultimatech.webapp.UserModel;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.util.List;

/**
 * Created by zhangleping on 2017/11/10.
 */
public interface IWebappService {
    String getToke(String code) throws UnsupportedEncodingException, IOException;

    UserList findAllUser(String accessToken) throws URISyntaxException;

    UserModel createUser(String accessToken, String name, String number) throws URISyntaxException;

    UserModel getUserById(String accessToken, Integer id);

    UserModel updateUser(String accessToken, Integer id, String name, String number) throws URISyntaxException;

    UserDelMsg delUser(String accessToken, Integer id) throws URISyntaxException;

}
